package ute.mvc.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
public class SubmittedTestAndQuizz implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3773661839890445254L;
	@Id
	@Column(length = 20)
	private String submittedTestAndQuizzId;

	// Vinh
	private Date startTime;
	private Date submittedTime;
	@Column(length = 10000)
	private String examQuestion;
	@Column(length = 10000)
	private String answerOfStudent;
	private float point;

	@JsonIgnore
	@ManyToOne
	@JoinColumn(name = "testAndQuizz_StudentId", nullable = false)
	private TestAndQuizz_Student testAndQuizz_student;

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public TestAndQuizz_Student getTestAndQuizz_student() {
		return testAndQuizz_student;
	}

	public void setTestAndQuizz_student(
			TestAndQuizz_Student testAndQuizz_student) {
		this.testAndQuizz_student = testAndQuizz_student;
	}

	public String getSubmittedTestAndQuizzId() {
		return submittedTestAndQuizzId;
	}

	public void setSubmittedTestAndQuizzId(String submittedTestAndQuizzId) {
		this.submittedTestAndQuizzId = submittedTestAndQuizzId;
	}

	public Date getSubmittedTime() {
		return submittedTime;
	}

	public void setSubmittedTime(Date submittedTime) {
		this.submittedTime = submittedTime;
	}

	public String getExamQuestion() {
		return examQuestion;
	}

	public void setExamQuestion(String examQuestion) {
		this.examQuestion = examQuestion;
	}

	public String getAnswerOfStudent() {
		return answerOfStudent;
	}

	public void setAnswerOfStudent(String answerOfStudent) {
		this.answerOfStudent = answerOfStudent;
	}

	public float getPoint() {
		return point;
	}

	public void setPoint(float point) {
		this.point = point;
	}

}
